import request from '@/utils/request'

// 查询销售分析日报列表
export function listProductsalereport(query) {
  return request({
    url: '/app/productsalereport/list',
    method: 'get',
    params: query
  })
}

// 查询销售分析日报详细
export function getProductsalereport(id) {
  return request({
    url: '/app/productsalereport/' + id,
    method: 'get'
  })
}

// 新增销售分析日报
export function addProductsalereport(data) {
  return request({
    url: '/app/productsalereport',
    method: 'post',
    data: data
  })
}

// 修改销售分析日报
export function updateProductsalereport(data) {
  return request({
    url: '/app/productsalereport',
    method: 'put',
    data: data
  })
}

// 删除销售分析日报
export function delProductsalereport(id) {
  return request({
    url: '/app/productsalereport/' + id,
    method: 'delete'
  })
}
